/****************************************************************************
*                                                                           *
* drawdialog.h 																*	
*                                                                           *
* ALaRI 2008												                *
*                                                                           *
****************************************************************************/

#pragma once

#if !defined(__DRAWDIALOG_H)
#define __DRAWDIALOG_H

/****************************************************************************
* Includes										                            *
****************************************************************************/
#include "../../common/defs.h"

#include <QDialog>
#include <QPoint>

/****************************************************************************
* Forward declarations			 											*
****************************************************************************/
class QDialogButtonBox;

/****************************************************************************
* CSettingsDialog			 												*
****************************************************************************/
class CDrawDialog : public QDialog
{
	Q_OBJECT

public:
	CDrawDialog(QWidget *pParent = 0);
	QPoint from() const { return QPoint(m_nFromX, m_nFromY); }
	QPoint to() const { return QPoint(m_nToX, m_nToY); }
	int type() const { return m_nType; }

private:
	int m_nFromX;
	int m_nFromY;
	int m_nToX;
	int m_nToY;
	int m_nType;
	QDialogButtonBox	*m_pQDialogButtonBox;

private slots:	
	inline void setFromX(int nX) {m_nFromX = nX; }
	inline void setFromY(int nY) {m_nFromY = nY; }
	inline void setToX(int nX) {m_nToX = nX; }
	inline void setToY(int nY) {m_nToY = nY; }
	inline void setType(int nType) {m_nType = nType; }
};

#endif /* __DRAWDIALOG_H */
/****************************************************************************
* End of file																*
****************************************************************************/

